import { makeAutoObservable } from 'mobx'
import { http } from '@/utils/index'
class userStore {
  // 存储用户信息
  userInfo = {}
  constructor() {
    makeAutoObservable(this)
  }
  // 发起获取用户信息的请去
  getUserInfo = async () => {
    const { data: res } = await http.get('/user/profile')
    this.userInfo = res
  }
}
export default userStore